// vite.config.mts
import {defineConfig} from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import {resolve} from "path";
import Components
    from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/unplugin-vue-components/dist/vite.js";
import {
    AntDesignVueResolver
} from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/unplugin-vue-components/dist/resolvers.js";
import {
    createSvgIconsPlugin
} from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import AutoImport
    from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/unplugin-auto-import/dist/vite.js";
import {
    visualizer
} from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/rollup-plugin-visualizer/dist/plugin/index.js";
import viteCompression
    from "file:///D:/project/loveMarriage/love_marriage_front/node_modules/vite-plugin-compression/dist/index.mjs";

var __vite_injected_original_dirname = "D:\\project\\loveMarriage\\love_marriage_front";
var pathResolve = (dir) => {
  return resolve(__vite_injected_original_dirname, "./", dir);
};
var alias = {
  "@": pathResolve("src"),
  "@v": pathResolve("src/views"),
  "@u": pathResolve("src/utils"),
  "@a": pathResolve("src/api"),
  "@r": pathResolve("src/router")
};
var vite_config_default = defineConfig({
  define: {
    __VUE_OPTIONS_API__: JSON.stringify(true),
    // 启用或禁用 Vue 2 的 Options API
    __VUE_PROD_DEVTOOLS__: JSON.stringify(false),
    // 生产环境下启用或禁用 Vue Devtools
    __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(true)
    // 生产环境下，当水合错误发生时提供额外的信息
  },
  plugins: [
    vue(),
    AutoImport({
      // 指定需要自动导入的库
      imports: ["vue", "vue-router", "pinia"],
      // Vite特定的配置
      dts: "src/auto-imports.d.ts",
      // 生成自动导入类型声明文件
      // 其他配置...
      eslintrc: {
        enabled: true
      }
    }),
    Components({
      resolvers: [
        AntDesignVueResolver({
          importStyle: "less"
        })
      ],
      dirs: ["src/views", "src/layout", "src/router"]
    }),
    createSvgIconsPlugin({
      iconDirs: [
        pathResolve("src/icons/menu"),
        pathResolve("src/icons/finance"),
        pathResolve("src/icons/soft"),
        pathResolve("src/icons")
      ],
      symbolId: "icon-[dir]-[name]",
      inject: "body-last",
      //body-last|body-first默认body-last
      customDomId: "__svg__icons__dom__"
      //默认__svg__icons__dom__
    }),
    visualizer(),
    viteCompression()
  ],
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  resolve: {
    alias
  },
  server: {
    host: "0.0.0.0",
    // port: VITE_PORT,
    port: 3e3,
    open: true,
    proxy: {
      // 选项写法
      "/api": {
        target: "http://localhost:30006",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  build: {
    minify: "terser",
    terserOptions: {
      compress: {
        drop_console: true,
        drop_debugger: true
      }
    },
    rollupOptions: {
      output: {
        //静态资源分类打包
        chunkFileNames: "static/js/chunkName-[hash].js",
        entryFileNames: "static/js/chunkName-[hash].js",
        assetFileNames: "static/[ext]/chunkName-[hash].[ext]",
        manualChunks(id) {
          if (id.includes("node_modules")) {
            return id.toString().split("node_modules/")[1].split("/")[0].toString();
          }
        }
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcubXRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiRDpcXFxccHJvamVjdFxcXFxsb3ZlTWFycmlhZ2VcXFxcbG92ZV9tYXJyaWFnZV9mcm9udFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxccHJvamVjdFxcXFxsb3ZlTWFycmlhZ2VcXFxcbG92ZV9tYXJyaWFnZV9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